.slideout_panel {
}

#slideout_schedule,
#slideout_patLastVisit,
#slideout_patCPP,
#slideout_waitlist,
#slideout_whiteboard {
    width: 500px;
    height: 100%;
    position: fixed;
    background-color: #FFF;
    z-index: 1041;
    right: -500px;
    border-left: 1px solid #CCCCCC;
    transition: right 0.3s ease-out;
}

.slideout_schedule_open,
.slideout_patLastVisit_open,
.slideout_waitlist_open,
.slideout_patCPP_open,
.slideout_whiteboard_open {
    right: 0px !important;
}

.slideout_title {
    width: 100%;
    height: auto;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #FFFFFF;
    background-color: #008ABD;
    border-bottom: 1px solid #CCCCCC;
    padding: 18px 20px;
}

#slideout_schedule .slideout_title {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slideout_schedule_nav {
    width: 100%;
    height: auto;
    background-color: rgba(231, 242, 248, 1);
    padding: 10px 54px 10px 10px;
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 1;
    border-bottom: 1px solid #c8c8c8;
}

.slideout_schedule_nav select {
    width: 100%;
}

.slideout_navitem_full {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.slideout_navitem_half {
    width: 50%;
    height: auto;
    float: left;
    margin-bottom: 10px;
}

.slideout_navitem_half:nth-child(2) {
    padding-right: 5px;
}

.slideout_navitem_half:nth-child(3) {
    padding-left: 5px;
}

.slideout_navitem_half input[type="text"] {
    margin: 1px 0 0 0;
    background-color: #FFFFFF !important;
}

#slideoutbtns {
    width: 100%;
    height: auto;
}

#slideoutbtns .subnavbtn {
    width: 32%;
}

#slideoutbtns .subnavbtn:nth-child(1) {
    margin-right: 2%;
}

#slideoutbtns .subnavbtn:nth-child(2) {
    margin-right: 2%;
}

#slideoutbtns .subnavbtn:nth-child(3) {
    margin-right: 0;
}

.slideout_body {
    width: 100%;
    height: auto;
    padding: 10px 54px 10px 10px;
    background-color: #FFFFFF;
}

#slideout_schedule .slideout_body {
    height: 98%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 192px 54px 30px 10px;
    overflow-y: scroll;
}

#slideout_schedule #slideoutScheduleContainer {
    overflow: scroll;
    position: relative;
}

#slideout_schedule_table_shell {
    border: 1px solid #CCCCCC;
}

#slideout_schedule #schedule_table_container {
    padding: 0;
}

#slideout_schedule #schedule_header {
    position: inherit;
}

#slideout_schedule #daily_schedule {
    margin-top: 0;
}

#slideout_schedule #schedule_header .schedule_header_block {
    font-size: 12px;
    line-height: 12px;
    padding: 9px 0;
}

#slideout_patient_count {
    padding: 6px 0 10px 0;
}

#slideout_schedule #schedule_header .schedule_header_block:nth-child(1) {
    width: 20% !important;
}

#slideout_schedule #schedule_header .schedule_header_block:nth-child(2) {
    width: 40% !important;
}

#slideout_schedule #schedule_header .schedule_header_block:nth-child(3) {
    width: 40% !important;
}

#slideout_schedule #slideout_daily_schedule tr td:nth-child(1) {
    width: 20% !important;
}

#slideout_schedule #slideout_daily_schedule tr td:nth-child(2) {
    width: 40% !important;
}

#slideout_schedule #slideout_daily_schedule tr td:nth-child(3) {
    width: 40% !important;
}

#slideout_schedule #slideout_daily_schedule tr td img {
    margin-top: 10px;
}

#slideout_schedule #slideout_daily_schedule {
    border-collapse: collapse;
    border-style: hidden;
}

#slideout_patCPP .slideout_title {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
}

#slideout_patCPP_container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 65px 54px 0 10px;
    overflow-y: scroll;
}

#slideout_patCPP_patientName {
    margin: 0;
    font-size: 14px;
}

#slideout_cpp_inner_container {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

#slideout_cpp_inner_container .cpp_item {
    width: 100%;
    height: auto;
    margin-bottom: 28px;
}

#slideout_cpp_inner_container .cpp_item_title {
    width: 100%;
    height: auto;
    background-color: #e7f2f8;
    color: #435F80;
    font-weight: 500;
    padding: 10px 6px;
    border: 1px solid #CCCCCC;
    border-bottom: none;
}

#slideout_cpp_inner_container .slideout_patCPP_item {
    width: 100%;
    height: auto;
    border: 1px solid #CCCCCC;
    padding: 10px;
    padding-bottom: 0px;
    line-height: 18px;
}

#slideout_cpp_inner_container .slideout_patCPP_item div,
#slideout_cpp_inner_container .slideout_patCPP_item p {
    margin-bottom: 10px;
}

#slideout_patCPP_patientsContainer {
    max-height: 400px;
    overflow: scroll;
    border: 1px solid #CCCCCC;
}

#slideout_patCPP {
    overflow: scroll;
}

/* Waitlist Styles */
#slideout_waitlist_search_container {
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

#slideout_waitlist_searchName {
    width: calc(100% - 20px) !important;
    padding: 10px !important;
    font-size: 14px;
    border: 1px solid #ccc !important;
    border-radius: 4px;
}

#slideout_waitlist_search_results {
    background-color: white;
    margin-top: 10px;
}

#slideout_waitlist_container {
    padding: 10px;
}

/* Make the waitlist content stretch to the bottom of the slideout */
#slideout_waitlist {
    display: flex;
    flex-direction: column;
}

#slideout_waitlist .slideout_body {
    /* occupy remaining height under the title */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    /* keep existing visual padding consistent with other slideouts */
    padding: 10px 54px 10px 10px;
    overflow: hidden; /* prevent double scrollbars; delegate to inner container */
}

#slideout_waitlist_container {
    /* scrolling happens here, and it fills the available body height */
    flex: 1 1 auto;
    min-height: 0; /* critical for flex children to be allowed to shrink in Firefox/Chrome */
    overflow: auto;
}

.waitlist_item {
    background-color: white;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.waitlist_item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.waitlist_item strong {
    color: #008ABD;
    font-size: 16px;
}

.waitlist_item strong a:hover {
    text-decoration: underline !important;
    color: #006a94 !important;
}

.waitlist_item small {
    color: #666;
}

.waitlist_item button {
    white-space: nowrap;
}

.waitlist_item button:hover {
    background-color: #006a94 !important;
}